package com.jgssp.ad.sdk.mediation.utils;

import java.math.BigDecimal;

/**
 * @author maipian
 * @description 描述
 * @date 6/17/24
 */
public class PriceUtil {
    public static double toCent(double ecpm) {
        try {
            BigDecimal bigDecimal = BigDecimal.valueOf(ecpm);
            BigDecimal price = bigDecimal.multiply(BigDecimal.valueOf(100));
            return price.doubleValue();
        } catch (Exception e) {
            return 0;
        }
    }
}
